package com.example.behavior.service.impl;

import com.example.behavior.dao.ApFollowBehaviorMapper;
import com.example.behavior.service.ApFollowBehaviorService;
import com.usian.model.behavior.pojos.ApFollowBehavior;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class ApFollowBehaviorServiceImpl implements ApFollowBehaviorService {
    @Autowired
    private ApFollowBehaviorMapper apFollowBehaviorMapper;

    @Override
    public ResponseResult insert(ApFollowBehavior apFollowBehavior) {
        int insert = apFollowBehaviorMapper.insert(apFollowBehavior);
        if (insert==1){
            return ResponseResult.okResult("添加成功");
        }
        return ResponseResult.errorResult(500,"添加失败");
    }
}
